package oop5;

public class TestSon {

	public static void main(String[] args) {
		// Father.print();
		// Son.print();
		// Father f = null;
		// f.print();// ? 错误？
		Father s = new Son();
		s.print();// 子类的print
		System.out.println(s.name);
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>");
		Son s2 = (Son) s;
		s2.print();
		System.out.println(s2.name);
	}

}
